package com.qianxp.designparttern.strategy;

/**
 * @author qianxp
 * @createTime 2019/11/17 0017
 */
public class StrategyTestMain {
    public static void main(String[] args) {
        pay(PayTypeEnum.ALI_PAY);
    }

    static void pay(PayTypeEnum payTypeEnum){
        Pay pay = payTypeEnum.get();
        pay.pay();
    }
}
